﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BT_DoHoa_Nhom13.ShapeLib.DFDShapes;

namespace BT_DoHoa_Nhom13.DiagramFactorys
{
    public class DFDFactory : MyDiagramFactory
    {
        static MyDiagramFactory instance;
        public static MyDiagramFactory GetInstance()
        {
            if (instance == null)
            {
                instance = new DFDFactory();
            }

            return instance;
        }

        private DFDFactory()
        {
            name = "DFC Diagram";
            InitialListNameOfShape();
        }

        public override MyShape GetStartShape()
        {
            return new DFDStartShape();
        }

        public override MyShape GetConditionShape()
        {
            return new DFDConditionShape();
        }

        public override MyShape GetEndShape()
        {
            return new DFDEndShape();
        }

        public override MyShape GetProcessShape( )
        {
            return new DFDProcessShape();
        }

        public override MyShape GetInputShape()
        {
            return new DFDInputShape();
        }

        public override MyShape GetOutputShape()
        {
            return new DFDOutputShape();
        }

        public override MyShape GetArrowShape()
        {
            return new DFDArrowShape();
        }
    }
}
